<?php 
 require_once('system/dbConnect.php');
   require_once('system/MyFunc.php'); 
connect();
$sql = "select * from category";
$result = fetch_array($sql);

?>
<!DOCTYPE html>
<html lang="en">
 <head>
  <meta charset="UTF-8">  
  <title>家具列表</title>
 </head>
 <body>
 <form method="post" action="search.php">
   <table>
     <tr>
       <td><input type="text" name="search_key"></td>
       <td><input type="submit" value="搜索"></td>
     </tr>
   </table>
 </form>
  <form method=post action="doadd.php" enctype="multipart/form-data" >
  <table  border="1">
  <caption>家具列表</caption>

  <tr>
    <th><label for="wn_name">家具名称：</label></th>
    <td><input type="text" name="wn_name" id="wn_name" size=30></td>
  </tr>
  <tr>
    <th><label for="wn_brand">家具品牌：</label></th>
    <td><input type="text" name="wn_brand" id="wn_brand" size=30></td>
  </tr>
  <tr>
    <th><label for="wn_intro">家具介绍：</label></th>
    <td><input type="text" name="wn_intro" id="wn_intro" size=30></td>
  </tr>
  <tr>
      <td><label for="url">所属类别</label></td>
      <td>
       <select name="eb">
       <option value=""> ==请选择== </option>
       <option value="0"> 沙发 </option>
       <option value="1"> 衣柜 </option>
       <option value="2"> 餐桌 </option>
       <option value="3"> 椅子 </option>
      <lect>
      </td>
    </tr>
  <tr>
    <th><label for="wn_adddate">添加时间：</label></th>
    <td><input type="date" name="wn_adddate" id="wn_adddate" size=30></td>
  </tr>
  <tr>
    <th><label for="wn_jiajulink">家具照片：</label></th>
    <td><input type="file" name="wn_jiajulink" id="wn_jiajulink" size=30></td>
  </tr>
  <tr>
    <th><label for="wn_ischecked">审核状态：</label></th>
    <td>
      <input type="radio" name="wn_ischecked" id="wn_ischecked" size=30 value=0 checked>未经审核
     <input type="radio" name="wn_ischecked" id="wn_ischecked" size=30 value=1>审核通过
    </td>
  </tr>



  

  <tr>
  <td colspan="2">
  <input type="submit" value="添加">
    <input type="reset" value="取消">
  </td>
  </tr>
 </table>
 </form>
 
 
 </body>
</html>
